import { defineStore } from 'pinia'

export const awordStore = defineStore({
    id: 'aword-config',
    state: () => ({
        aWord:{} as any ,
        day:null
    }),
    actions: {
        setAWord: function(aWord:any) {
            this.aWord = aWord
        },
        setDay: function(day:any) {
            this.day = day
        }
    },
    // 为true，app-user这个store中的state数据将缓存到localStorage
    persist: true,
  })
  